import request from "@/api";
import { Login } from "@/api/interface";

export const loginApi = (params: object) => {
  return request.post<Login.ResLogin>("/login", params);
};

export const getMenus = () => {
  return request.get<Menu.MenuOptions[]>("/menus");
};
